package com.example.tianyidemo.Mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface AddCommentMapper {
@Insert("insert into comment (commentsPostID,commentsUserID, commentsContent) VALUES (1,#{commentsUserID},#{commentsContent})")
    int addcomments(@Param("commentsContent")String commentsContent,@Param("commentsUserID")int commentsUserID);
}
